<div class="page_head">
<h2>Listing plans</h2>
</div>

<table class=data>
  <tr>
    <th>COUNTS</th>
    <th>Name</th>
    <th>Projects</th>
    <th>Price</th>
    <th>Price_cn</th>
    <th>Storeage size</th>
    <th>Max size</th>
    <th colspan=3>Action</th>
  </tr>
  
<% for plan in @plans %>
  <tr>
    <td><%=plan.companies.size%></td>
    <td><%=plan.name%></td>
    <td><%=plan.projects%></td>
    <td><%=plan.price%></td>
    <td><%=plan.price_cn%></td>
    <td><%=number_to_human_size(plan.storage_size)%></td>
    <td><%=number_to_human_size(plan.max_size)%></td>
    <td><%= link_to 'Show', plan_path(plan) %></td>
    <td><%= link_to 'Edit', edit_plan_path(plan) %></td>
    <td><%= link_to 'Destroy', plan_path(plan), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New plan', new_plan_path %>
